package com.itheima.job;

import java.util.HashMap;
import java.util.Iterator;
import java.util.Set;

public class Test03 {
    public static void main(String[] args) {
        HashMap<String,Integer> hm = new HashMap<>();
        hm.put("柳岩",2100);
        hm.put("张亮",1700);
        hm.put("诸葛亮",1800);
        hm.put("灭绝师太",2600);
        hm.put("东方不败",3800);

        Integer i = hm.get("柳岩");
        hm.put("柳岩",i+300);
        Set<String> keys = hm.keySet();
//        for (String key : keys) {
//            if (key.equals("柳岩")){
//                hm.put(key,hm.get(key)+300);
//            }
//        }
        for (String key : keys) {
            System.out.println(key+"\t"+hm.get(key));
        }

    }
}
